package com.cnyz.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@ApiModel(description = "数据输出")
@NoArgsConstructor
public class BaseVo implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String createDay;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @ApiModelProperty(value = "更新人")
    private Long updateBy;

    @ApiModelProperty(value = "是否有效")
    private String dataState;

    @ApiModelProperty(value = "评论")
    private String remark;

    @ApiModelProperty(value = "创建者type 1:前台 2:后台")
    private Integer creatorType;

    @ApiModelProperty(value = "创建者姓名")
    private String creator;

    @ApiModelProperty(value = "更新者姓名")
    private String updater;

    @ApiModelProperty(value = "后台管理者创建名称")
    private String adminCreator;

    public BaseVo(Long id,String dataState) {
        this.id=id;
        this.dataState=dataState;
    }









}
